package io.terminus.spzx.model.entity.order;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 【移动端】交易订单明细Entity实体类
 * @Date 2024-03-10
 */
@Data
@Schema(description = "订单项实体类")
@EqualsAndHashCode(callSuper = true)
public class OrderItem extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "商品sku编号")
    private Long skuId;

    @Schema(description = "商品sku名字")
    private String skuName;

    @Schema(description = "商品sku图片")
    private String thumbImg;

    @Schema(description = "商品sku价格")
    private BigDecimal skuPrice;

    @Schema(description = "商品购买的数量")
    private Integer skuNum;

}